package com.yc.bran.snack.util;

/**
 * 字符串工具类
 * @author 31812
 *
 */
public class StringUtil {

	public static boolean checkNull(String ... strs) {
		if(strs == null || strs.length <=0 ) {
			return true;
		}
		for(String str : strs) {
			if(str == null || "".equals(str)) {
				return true;
			}
		}
		return false;
	}
	
	public static boolean checkNull(Object ... objs) {
		if(objs == null || objs.length <=0 ) {
			return true;
		}
		for(Object obj : objs) {
			if(obj == null || "".equals(String.valueOf(obj))) {
				return true;
			}
		}
		return false;
	}

}
